<?php
class FrontMedia {
	
	/**
     * @var object Zend DB Adapter
     */
	private $_db;
    /**
     * @var string
     */

	public function __construct()
    {
        $this->_db = Zend_Registry::get('db');
    }
	
	public function getBanners($banner_type)
	{
		$sql = "SELECT banner_id, banner_filename, banner_title, banner_desc, banner_url
				FROM aml_banners
				WHERE banner_type = '" . $banner_type . "' 
				AND is_active = 1";
		
		$result = $this->_db->fetchAll($sql);
		return $result;
	}	
}
?>